<h1 class="page-header">个人资料</h1>

<form class="form-horizontal cmd-async" action="?action=save" method="post">
    <div class="form-group">
        <label for="nickname" class="col-sm-2 control-label">昵称</label>
        <div class="col-sm-5">
            <input type="text" class="form-control" id="nickname" name="nickname" placeholder="请输入当前密码" value="<?php e(get_user_info(get_current_login_user_info('id'), 'nickname')); ?>">
        </div>
    </div>
    <div class="form-group">
        <label for="old_password" class="col-sm-2 control-label">当前密码</label>
        <div class="col-sm-5">
            <input type="password" class="form-control" id="old_password" name="old_password" placeholder="请输入当前密码">
        </div>
    </div>
    <div class="form-group">
        <label for="new_password" class="col-sm-2 control-label">新密码（为空不修改）</label>
        <div class="col-sm-5">
            <input type="password" class="form-control" id="new_password" name="new_password" placeholder="请输入新密码">
        </div>
    </div>
    <div class="form-group">
        <label for="re_new_password" class="col-sm-2 control-label">重复新密码</label>
        <div class="col-sm-5">
            <input type="password" class="form-control" id="re_new_password" name="re_new_password" placeholder="请重复输入新密码">
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-5">
            <button type="submit" class="btn btn-primary" id="save">保存</button>
        </div>
    </div>
    <?php echo csrf_token_hidden_input_html(); ?>
</form>